package com.zj.printdemo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.inuker.bluetooth.library.BluetoothClient;
import com.inuker.bluetooth.library.beacon.Beacon;
import com.inuker.bluetooth.library.connect.response.BleConnectResponse;
import com.inuker.bluetooth.library.model.BleGattProfile;
import com.inuker.bluetooth.library.search.SearchRequest;
import com.inuker.bluetooth.library.search.SearchResult;
import com.inuker.bluetooth.library.search.response.SearchResponse;
import com.inuker.bluetooth.library.utils.BluetoothLog;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import static com.inuker.bluetooth.library.Code.REQUEST_SUCCESS;

public class MainActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.button2).setOnClickListener(onClickListener);
        findViewById(R.id.button3).setOnClickListener(onClickListener);
        findViewById(R.id.button4).setOnClickListener(onClickListener);


    }

    public View.OnClickListener onClickListener = new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            switch (v.getId()) {
                case R.id.button2:
                    Intent intent0 = new Intent(MainActivity.this, BluetoothKitTest.class);
                    startActivity(intent0);
                    break;
                case R.id.button3:
                    Intent intent = new Intent(MainActivity.this, PrintDemo.class);
                    startActivity(intent);
                    break;
                case R.id.button4:
                    Intent intent4 = new Intent(MainActivity.this,CustomBluetoothFrame.class);
                    startActivity(intent4);
                    break;
            }
        }
    };



}
